Skip to content

Fix unit/integration tests related with connection.connect and bolt-agent for Deno #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2023

Conversation

bigmontz
Copy link

The test code related with connection.connect were calling the method without the bolt agent causing all kind of errors. Add the bolt agent to the calls and expectations solves the issue.

Deno.osRelease() and the flag --allow-sys are not available in Deno 1.19.2. The missing flag was causing the test don't even start. The method un-existence was causing the code fails because is calling a non existing method.

The missing flag is solved by using --allow-all instead. This is a more permissive flag, but it is not a big deal in test env.

The absence of Deno.osRelease() is solved by not setting the release when this method is not available. This might be an issue for old Deno users, but it's not a blocker.

…gent for Deno

The test code related with `connection.connect` were calling the method without the bolt agent causing all kind of errors.
Add the bolt agent  to the calls and expectations solves the issue.

`Deno.osRelease()` and the flag `--allow-sys` are not available in Deno 1.19.2.
The missing flag was causing the test don't even start.
The method unexistance was causing the code fails because is calling a non existing method.

The missing flag is solved by using `--allow-all` instead.
This is a more permissive flag, but it is not a big deal in test env.

The absence of `Deno.osRelease()` is solved by not setting the release when this method is not available.
This might be an issue for old Deno users, but it's not a blocker.
@ConorNeo ConorNeo merged commit 1e4065f into ConorNeo:bolt-agent May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants